package com.lyf.juc.practice.threadpool;

import io.netty.util.concurrent.DefaultThreadFactory;

import java.util.concurrent.*;

/**
 * 线程池的使用
 * 1.线程池的工作流程及原理
 *
 * 2.线程池的七大参数理解（同1）
 *
 * https://blog.csdn.net/manhengwei/article/details/122409320
 * 3.线程池的参数如何合理设置
 * （1）IO密集型
 * （2）CPU密集型
 * CPU密集型：corePoolSize = CPU核数 + 1
 * IO密集型：corePoolSize = CPU核数 * 2
 * https://blog.csdn.net/weixin_45955969/article/details/122934010
 *
 * @author LYF
 * @date 2022/6/20
 */
public class ThreadPoolDemo {

    public static void main(String[] args) {

//        public ThreadPoolExecutor(int corePoolSize,
//        int maximumPoolSize,
//        long keepAliveTime,
//        TimeUnit unit,
//        BlockingQueue<Runnable> workQueue) {
//            this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue,
//                    Executors.defaultThreadFactory(), defaultHandler);
//        }
        
    }
}
